package com.skytech.tax.customsdatawarehouse.singlewindow.processtrade.books.resource;

import com.skytech.tax.customsdatawarehouse.singlewindow.processtrade.books.domain.service.BooksGoodsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Lianhong
 * @since 2021/11/11
 */
@RestController
@RequestMapping("/single-window/process-trade/books/goods")
public class BooksGoodsResource {

    @Resource
    private BooksGoodsService booksGoodsService;

    /**
     * 保存加工贸易账册单耗
     *
     * @param cm 加工贸易账册单耗
     */
    @PostMapping("cm")
    public String saveCm(@RequestBody String cm) {
        return booksGoodsService.saveCm(cm);
    }

    /**
     * 保存加工贸易账册成品
     *
     * @param exg 加工贸易账册成品
     */
    @PostMapping("exg")
    public String saveExg(@RequestBody String exg) {
        return booksGoodsService.saveExg(exg);
    }

    /**
     * 保存加工贸易账册料件
     *
     * @param img 加工贸易账册料件
     */
    @PostMapping("img")
    public String saveImg(@RequestBody String img) {
        return booksGoodsService.saveImg(img);
    }


}
